
//
//  AddressPickerView.m
//  MJApp
//
//  Created by wangliang on 15/6/25.
//  Copyright (c) 2015年 wangliang. All rights reserved.
//

#import "AddressPickerView.h"

@interface AddressPickerView ()

@property(nonatomic,strong) NSMutableArray *addrList;

@end

@implementation AddressPickerView


- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        
        self.frame = frame;
        [self UI];
        [self Data];
    }
    return self;
}


- (NSMutableArray *)addrList {
    
    if (!_addrList) {
        _addrList = [NSMutableArray array];
    }
    return _addrList;
}

- (void)UI {
    
    self.delegate = self;
    self.dataSource = self;
}

- (void)Data {
    

}


- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
    
    return 1;
}

- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
    
    return 10;
}

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
    
    return @"sfsfs";
}


@end
